< previous page page_208 next page >

Page 208
Designing the Print Report Dialog Box
There are a handful of report parameters that you can set using the Crystal Reports Pro Control. Instead of setting them in Visual Basic 5 code, you'll create a simple report dialog box that can be used to set the most common parameters. This dialog box is portable, so you can use it in any future Visual Basic 5 program.
Use Figure 6.23 and the information in Table 6.8 to construct a generic Print Report dialog box. Please note that you will be adding text boxes that have their Visible property set to False, meaning that they won't appear at runtime. These controls should simply be placed in a convenient position (such as the open space between the Printer Setup and Exit command buttons).
0208-01.jpg
Figure 6.23.
Building a generic Print Report dialog box.
Table 6.8. Control information for the Print Report dialog box.
ControlPropertySetting
FormNamefrmReport
BackColorLight Gray
CaptionPrint Report
Height2475
Width6540
Save AsReport.frm
Command ButtonNamecmdOK
Caption&OK
Height330
Left5100
Top240
Width1200
Command ButtonNamecmdPrnSetup
CaptionPrinter &Setup
Height330

(table continued on next page)

 
< previous page page_208 next page >

If you like this book, buy it!